package com.gupao.pattern.factory.method;

import com.gupao.pattern.factory.simple.AbstractPhone;

public class MehodFactoryTest {
    public static void main(String[] args) {
        PhoneFactory vivoFactory = new VivoFactory();
        AbstractPhone vivo = vivoFactory.getPhoen();
        vivo.start();
        vivo.call();
        vivo.shutdown();

        PhoneFactory iPhoneFactory = new IPhoneFactory();
        AbstractPhone iphone = iPhoneFactory.getPhoen();
        iphone.start();
        iphone.call();
        iphone.shutdown();
    }
}
